send APDU
abstract fun sendAPDU(apdu: Array<Byte>, bufferSize: Int, closeAfterResponse: Boolean): NfcCommandResponse
Sends an APDU command to the card and returns the response. **Note:** [openCardReader] must be called before this method. The reader must be opened before using this command and should be closed afterward. If you want to send APDU commands to multiple cards, you need to close and reopen the reader for each card. Additionally, some devices might require a delay between consecutive requests to ensure proper operation.
Return
The response of the card to the APDU command.
Parameters
apdu
The APDU command to be sent to the card.
buffer Size
The expected buffer size of the response. Use 255 by default.
close After Response
A flag indicating whether to close the card reader after receiving the response.